<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
[%if count($arrkeylink)>0%]
<title>[%$arrkeylink.keytitle%]</title>
<meta name="Keywords" content="[%$arrkeylink.Keywords%]"/>
<meta name="Description" content="[%$arrkeylink.Description%]"/>
[%/if%]
<link href="[%$url%]templates/greenhotel/style/map.css?v=[%$softversion%]" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="[%$url%]templates/greenhotel/js/jquery.js?v=[%$softversion%]"></script>
<script type="text/javascript" src="[%$url%]templates/greenhotel/js/common.js?v=[%$softversion%]"></script>
<script type="text/javascript" src="[%$url%]templates/greenhotel/js/map.js?v=[%$softversion%]"></script>
<script type="text/javascript" src="[%$url%]js/city.js?v=[%$softversion%]"></script>
<script type="text/javascript">var dcode = "[%$dcode%]",dcity = "[%$dcity%]",siteurl = "[%$url%]";</script>
<script type="text/javascript" src="[%$url%]js/calendar.js?v=[%$softversion%]"></script>
<script type="text/javascript" src="http://api.mapbar.com/api/mapbar31.2.js"></script>
<script type="text/javascript"> 
var maplet = null;
function initMap(){
	// 初始化地图
	maplet = new Maplet("mapbar");
	maplet.centerAndZoom(new MPoint([%$clng%],[%$clat%]), 8);
	maplet.addControl(new MStandardControl());
	maplet.showOverview(false);
	maplet.width = 768;
	maplet.height = 500;
	
	MEvent.addListener(maplet,"lookup",solookup);
}

//设置信息窗口宽高。   
avBubble.width = 540;   
avBubble.height = 270;

function solookup(a){
	var t = a.split('&');
	var lnglat = getlnglat(t[2],t[3]);
	var lng = lnglat[0].toString();
	var lat = lnglat[1].toString();
	var mapurl = "[%$mapurl%]";
	mapurl = mapurl.replace('lng=1','lng='+lng);
	mapurl = mapurl.replace('lat=1','lat='+lat);
	window.location=mapurl;
};

var active_menu = "maps";
</script>
</head>
<body onload="initMap();">
[%include file="greenhotel/cn/public/head.html"%]

<div id="tips_rooms">
	<div class="room"></div>
</div>
<div id="tips_pic"></div>
<div id="pageNav" class="maxWidth">
	<p>当前位置：<a href="[%$url%]">[%$lngpack.sitename%]</a> &raquo; 电子地图</p>
</div>
<div class="clearLine10"></div>
<div class="maxWidth">
	<div id="contentPanel">
		<div class="hotelmaplist">
        	<div class="mapsearch"><div class="p">选择城市 &nbsp;<input id="mcityname" name="mcityname" size="20" value="" class="infoInput" title="可以填写汉字、拼音、拼音缩写" />
                             <input type="hidden" id="mcityid" name="mcityid" value="0101" /><div id="mcitynametips" class="citynametips"></div> &nbsp;在 &nbsp;<input type="text" id="hotelmnearby" class="near" name="hotelmnearby" title="您可以输入你去的那个地方附近的主要标志，例如：天安门、西客站、海龙大厦等等" value="" /><input id="coordinate2" name="coordinate2" type="hidden" value="" /> &nbsp;附近 <input type="button" id="mapsubmit" name="mapsubmit" class="mapsubmit" value="查找酒店" /></div><dl><dd id="zoomin"><a href='#body' onClick="maplet.zoomIn();">放大</a></dd><dd id="zoomout"><a href='#body' onClick="maplet.zoomOut();">缩小</a></dd><dd id="measure"><a href='#body' onClick="maplet.setMode('measure');">测距</a></dd><dd id="lookup"><a href='#body' onClick="maplet.setMode('lookup');">拉框找酒店</a></dd>
</dl></div>
        	<div id="mapbar" style="height:500px; width:768px; z-index:20;">地图正在加载中...</div>
        </div>
	</div>
    <!--城市弹出框start-->
<div id="cityresults" class="cityresults" style="width: 340px;">
    <div style="width: 100%;">
        <div class="ac_title"><h3><span> 拼音支持首字母输入, 或 <span style="font-family: simsun;">&nbsp;←↑↓→&nbsp;</span> 选择 </span></h3><a class="ac_close" title="关闭" href="javascript:ac_close();"></a> </div>
        <ul class="abctab" method="hotTab">
            <li class="action" onclick="cityTablist(1);">热门</li>
            <li onclick="cityTablist(2);">ABCD</li>
            <li onclick="cityTablist(3);">EFGHJ</li>
            <li onclick="cityTablist(4);">KLMN</li>
            <li onclick="cityTablist(5);">PQRSTW</li>
            <li onclick="cityTablist(6);">XYZ</li>
         </ul>
         <div id="abclist"></div>
    </div>
</div>
<!--城市弹出框end-->
	<div id="sidePanel">
		<div id="sidesearch" class="sidebar" style="margin-bottom:10px;">
            <div class="p">
                <div class="t"></div>
                <div class="c">
                    <div class="angle_l"></div>
                    <div class="search">
                        <ul>
                            <li class="hotelSearch"><h3>酒店查询</h3></li>
                            <li class="flightSearch"><h3></h3></li>
                        </ul>
                        <ul style="display:none;">
                            <li class="hotelSearch2"><h3>酒店查询</h3></li>
                            <li class="flightSearch2"><h3></h3></li>
                        </ul>
                        <div class="formPanel">
                            <form id="hotelSearchForm" name="hotelSearchForm" action="[%$url%]index.php" method="get">
                             <dl>
                             <dd><label>城市：</label><input id="cityname" name="cityname" size="20" value="" class="infoInput" title="可以填写汉字、拼音、拼音缩写" />
                             <input type="hidden" id="cityid" name="cityid" value="" /><div id="citynametips" class="citynametips"></div></dd>
                             <dd><label>入住日期：</label><input id="tm1" type="text" name="tm1" value="" title="选择入住日期" class="infoInput" />
                              <div id="tm1tips" class="tm1tips"></div></dd>
                             <dd><label>退房日期：</label><input id="tm2" type="text" name="tm2" value="" title="选择退房日期" class="infoInput" />
                              <div id="tm2tips" class="tm2tips"></div></dd>
                             <dd><label>酒店名称：</label><input type="text" id="hotelname" name="hotelname" size="30" maxlength="80" value="" class="infoInput" title="可以输入如家、快捷、7天、锦江之星、前门店" /><div id="hotelnametips" class="hotelnametips">输入酒店部分或者全部名称</div>
                             </dd>
                             <dd><label>酒店靠近：</label><input id="hotelnearby" name="hotelnearby" value="" size="20" class="infoInput" title="您可以输入你去的那个地方附近的主要标志，例如：天安门、西客站、海龙大厦等等" /><input id="coordinate" name="coordinate" type="hidden" value="0,0" />	<div id="hotelnearbytips" class="hotelnearbytips">输入标志性建筑或地标</div>
                             </dd>
                             <dd><label>酒店星级：</label><select size="1" name="hotelstar" class="select" id="hotelstar">
                                <option value="" selected="selected">不限星级</option>
                                <option value="1">一星级/节约型</option>
                                <option value="2">二星级/经济型</option> 
                                <option value="3">三星级/舒适型</option>
                                <option value="4">四星级/高档型</option>
                                <option value="5">五星级/豪华型</option> 
                            </select></dd>
                            <dd><label>酒店价格：</label><select size="1" name="hotelprice" class="select" id="hotelprice">
                                <option value="0" selected="selected">不限</option>
                                <option value="200">¥200元以下</option> 
                                <option value="200,300">¥200-300元</option>
                                <option value="300,500"> ¥300-500元</option>
                                <option value="500">¥500元以上 </option> 
                            </select></dd>
                            <dd>
                            <input type="hidden" id="ac" name="ac" value="hotel" /><input type="hidden" id="at" name="at" value="hotelsearch" />
                        <input type="hidden" id="broadbandService" name="broadbandService" value="0" /><input type="hidden" id="districtCode" name="districtCode" value="" /><input type="hidden" id="businessZoneCode" name="businessZoneCode" value="" /> <input type="hidden" id="simple" name="simple" value="2" />
                            <input type="submit" id="submitbotton" value="" title="搜索" class="buttonface" /></dd>
                             </dl>
                            </form>
                        </div>
                        <div class="formPanel hidden">
                            <form id="flightSearchForm" action="/" method="post">
                              
                            </form>
                        </div>
                    </div>
                    <div class="clearLine"></div>
                    <div class="angle_r"></div>
                </div>
                <div class="f"></div>
            </div>
		</div>
        <div id="autoCompleteCityName" class="cityname"></div>
        <div id="autoCompletemCityName" class="mcityname"></div>
        <div id="autoCompleteNearby" class="hotelnearby"></div>
        <div id="autoCompletemNearby" class="hotelmnearby"></div>
		<div class="clearLine10"></div>
        <div class="clearLine"></div>
        <!--<div class="filtersel">
         	<input type="checkbox" name="xf" value="1" />消费券 <input type="checkbox" name="xf" value="1" />返现金 <input type="checkbox" id="guaranteeable" name="guaranteeable" checked="checked" value="1" />是否担保
            <input type="hidden" id="guaranteeableurl" name="guaranteeableurl" value="[%$url%]index.php?ac=hotel&at=hotelsearch&cityid=0101&cityname=%E5%8C%97%E4%BA%AC&tm1=2011-06-29&tm2=2011-07-01&simple=1" />
         </div>
         <div class="clearLine clearLine10"></div>-->
        <div id="searchtips">请稍等，您查询的酒店正在搜索中...</div>
		<div class="sidebarleft">
			<h2>酒店资讯</h2>
			[%get name=list class=$lng,1,0,0,0,0,10%]
			<ul>
				[%forlist from=$array key=i%]
				<li><a target="_blank"title="[%$array[i].title%]"href="[%$array[i].link%]">[%$array[i].title%]</a></li>
				[%/forlist%]
			</ul>
			[%/get%]
		</div>
	</div>
	<div class="clearLine"></div>
</div>
<script type="text/javascript">
	if($("#mcityname").val() == "") {
		$("#mcityname").val(dcity);
		$("#mcityid").val(dcode);
	}
</script>
[%include file="greenhotel/cn/public/footer.html"%]
</body>
</html>